<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>附加论坛插件</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">辅助插件</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <tr>
    <td width="100%" height="24" colspan="2" bgcolor="#EDF9D5">
      <b>§论坛扩展代码§</b>    </td>
  </tr>
  <tr>
    <td height="250" colspan="2" bgcolor="#FFFFFF">
    	<table width="90%"  border="0" align="center" cellpadding="2" cellspacing="2">
      <tr>
        <td colspan="2">
        以下的代码提供在封面模板中调用论坛的主题贴子数据.
        </td>
      </tr>
	  <form name="mycode1" action="tag_test_action.php" target="_blank" method="post">
      <tr>
        <td bgcolor="#F3F3F3">Discuz论坛：          </td>
        <td align="right" bgcolor="#F3F3F3"><input name="b1" type="submit" id="b1" value=" 预览 " class="inputbut"></td>
      </tr>
      <tr>
        <td colspan="2">
<textarea name="partcode" cols="60" rows="8" id="partcode" style="width:600px">论坛最新主题：<br/>
{dede:loop table="cdb_threads" sort="tid" row="10"}
<a href="/dz/viewthread.php?tid=[field:tid /]">
·[field:subject function="cn_substr('@me',30)" /]([field:lastpost function="date('m-d H:M','@me')" /])
</a>
<br/>
{/dede:loop}</textarea>
    </td>
      </tr>
	  </form>
	  <form name="mycode2" action="tag_test_action.php" target="_blank" method="post">
      <tr>
        <td bgcolor="#F3F3F3">PHPWIND论坛： </td>
        <td align="right" bgcolor="#F3F3F3"><input name="b2" type="submit" id="b2" value=" 预览 " class="inputbut"></td>
      </tr>
      <tr>
        <td colspan="2">
        	<textarea name="partcode" cols="60" rows="8" id="partcode" style="width:600px">论坛最新主题：<br/>
{dede:loop table="pw_threads" sort="tid" row="10"}
<a href='/phpwind/read.php?tid=[field:tid /]'>
·[field:subject function="cn_substr('@me',30)" /]([field:lastpost function="date('m-d H:M','@me')" /])
</a>
<br/>
{/dede:loop}</textarea>
</td>
      </tr>
	   </form>
	  <form name="mycode2" action="tag_test_action.php" target="_blank" method="post">
      <tr>
        <td bgcolor="#F3F3F3">VBB论坛： </td>
        <td align="right" bgcolor="#F3F3F3"><input name="b3" type="submit" id="b3" value=" 预览 " class="inputbut"></td>
      </tr>
      <tr>
        <td colspan="2"><textarea name="partcode" cols="60" rows="8" id="partcode" style="width:600px">论坛最新讨论：<br/>
{dede:loop table="thread" sort="threadid" row="10"}
<a href='/vbb/showthread.php?threadid=[loop:field name="threadid"/]'>
·[field:title function="cn_substr('@me',30)" /]([field:lastpost function="date('m-d H:M','@me')" /])
</a>
<br/>
{/dede:loop}</textarea></td>
      </tr>
	   </form>
	  <form name="mycode2" action="tag_test_action.php" target="_blank" method="post">
      <tr>
        <td bgcolor="#F3F3F3">PHPBB论坛： </td>
        <td align="right" bgcolor="#F3F3F3"><input name="b4" type="submit" id="b4" value=" 预览 " class="inputbut"></td>
      </tr>
      <tr>
        <td colspan="2"><b>
          <textarea name="partcode" cols="60" rows="7" id="partcode" style="width:600px">论坛最新讨论：<br/>
{dede:loop table="phpbb_topics" sort="topic_id" row="10"}
<a href='/phpbb/viewtopic.php?t=[loop:field name="topic_id"/]'>
·[field:topic_title" function="cn_substr('@me',30)" /]
</a>
([field:topic_time" function="date('m-d H:M','@me')" /])
<br/>
{/dede:loop}</textarea>
        </b></td>
      </tr>
	  </form>
      <tr>
        <td colspan="2">&nbsp;</td>
        </tr>
    </table>
    
    </td>
  </tr>
</table>
</body>
</html>